<template>
  <el-dialog
    title="工单详情"
    v-model="checkDialogShow"
    width="1400px"
    class="dialogBox"
    append-to-body
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    @close="handleBack"
  >
    <div class="dialog-top">
      <div class="order-detail-header">
        <div class="order-container">
          <div class="order-title">{{ workOrderObj?.name }}</div>
          <div class="container-footer">
            <div>提交时间：{{ workOrderObj?.createTime }}</div>
            <div>工单类型：{{ workOrderObj?.typeName }}</div>
          </div>
        </div>
        <!-- <div>{{ workOrderObj.status }}</div> -->
        <div class="status-icon" :class="`status-icon${workOrderObj?.status}`">
        </div>
      </div>
    </div>

    <div class="projectAdd" v-loading="detailInfoShow">
      <el-tabs type="border-card" v-model="activeName">
        <el-tab-pane label="工单信息" name="info">
          <!-- 筛选按钮 -->
          <el-collapse v-model="activeNames" v-if="activeFlag === 1">
            <el-collapse-item name="1">
              <template #title>
                <span class="circle"></span>
                <span class="collapse-title">问题描述</span>
              </template>
              <div style="height: 50px">
                {{ workOrderRemark || "暂无数据" }}
              </div>
            </el-collapse-item>
            <!-- 基础信息 -->
            <el-collapse-item name="2">
              <!-- class="transform-down" -->
              <template #title>
                <span class="circle"></span>
                <span class="collapse-title">工单联系人</span>
              </template>
              <div class="contact-info">
                <el-table
                  :data="constructionData"
                  border
                  height="180px"
                  :header-cell-style="{ 'text-align': 'center' }"
                >
                  <el-table-column
                    type="index"
                    label="序号"
                    :show-overflow-tooltip="true"
                    min-width="60"
                    align="center"
                    prop="index"
                  />
                  <el-table-column
                    label="姓名"
                    prop="name"
                    :show-overflow-tooltip="true"
                    min-width="160"
                    align="center"
                  />
                  <el-table-column
                    label="联系方式"
                    prop="tel"
                    :show-overflow-tooltip="true"
                    min-width="160"
                    align="center"
                  />
                  <el-table-column
                    label="备注"
                    prop="remark"
                    :show-overflow-tooltip="true"
                    min-width="200"
                    align="center"
                  />
                </el-table>
              </div>
            </el-collapse-item>
            <!-- 甲方施工联系人 -->
            <el-collapse-item
              name="3"
              style="position: relative; margin-top: 20px"
            >
              <template #title>
                <span class="circle"></span>
                <span class="collapse-title">项目详情</span>
              </template>
              <div v-if="checkTypeFlag == 2" style="margin-top: 20px">
                <el-form-item label="情况说明：" prop="projectType">
                  {{ projectForm.projectStatusRemark || "无" }}
                </el-form-item>
              </div>
              <div>
                <el-descriptions
                  border
                  style="margin: 20px 0"
                  column="2"
                  label-align="center"
                  align="center"
                >
                  <el-descriptions-item
                    label="项目名称"
                    :span="2"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.projectName || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="项目编号"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.projectCode || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="所属行业"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{ projectOrder.industryName || "--" }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="所属公司"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.companyName || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="业务人员"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.businessName || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="项目类型"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.projectTypeName || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="项目种类"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.projectCategoryName || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="项目起止时间"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                  >
                    <template
                      v-if="projectOrder.startTime && projectOrder.endTime"
                    >
                      {{ projectOrder.startTime }} 至
                      {{ projectOrder.endTime }}
                    </template>
                    <template v-else> -- </template>
                  </el-descriptions-item>
                  <el-descriptions-item
                    label="关联客户"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.customerName || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="项目执行地"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                  >
                    {{ projectOrder.executiveAddress || "--" }}
                  </el-descriptions-item>
                  <el-descriptions-item
                    label="详细地址"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{ projectOrder.address || "--" }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="项目金额"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.moneyName + "元" || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="是否签合同"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.includeContractName || "--"
                    }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="使用单位"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{ projectOrder.endUseUnit || "--" }}</el-descriptions-item
                  >
                  <el-descriptions-item
                    label="使用单位联系人"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                  >
                    <template v-if="projectOrder.unitContact">
                    {{ projectOrder.unitContact }}-{{
                      projectOrder.unitContactInformation
                    }}
                  </template>
                  <template v-else> -- </template>
                  </el-descriptions-item>
                  <el-descriptions-item
                    label="质保起止时间"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    width="330px"
                  >
                    {{ projectOrder.warrantyStartTime || "--" }}
                  </el-descriptions-item>
                  <el-descriptions-item
                    label="质保终止时间"
                    label-class-name="desLabel"
                    label-align="center"
                    align="center"
                    >{{
                      projectOrder.warrantyEndTime || "--"
                    }}</el-descriptions-item
                  >
                </el-descriptions>
              </div>
            </el-collapse-item>
          </el-collapse>
        </el-tab-pane>
        <el-tab-pane label="任务分配" name="approval">
          <el-descriptions
            border
            style="margin: 20px 0"
            column="2"
            label-align="center"
            align="center"
          >
            <el-descriptions-item
              label="计划开始时间"
              label-class-name="desLabel"
              label-align="center"
              align="center"
              >{{ auditList.startTime || "--" }}</el-descriptions-item
            >
            <el-descriptions-item
              label="预计结束时间"
              label-class-name="desLabel"
              label-align="center"
              align="center"
              >{{ auditList.endTime || "--" }}</el-descriptions-item
            >
            <el-descriptions-item
              label="责任人"
              label-class-name="desLabel"
              label-align="center"
              align="center"
            >
             
              <div>
                    <div v-if="!mouseFlag">
                      <div @mouseover="handleMouseOver(1)">
                        <!-- @mouseleave="handleMouseLeave(1)" -->
                       <span v-for="(item,index) in auditList.userList">
                        {{ item.nickName }}<span v-if="auditList.userList.length !== index +1">,</span>
                    </span>
                      </div>
                    </div>
                    <div v-else style="display: flex">
                      <el-select
                        filterable
                        style="width: 80%;height:100%;"
                        v-model="auditList.userList2"
                        multiple
                        placeholder="请选择"
                        clearable
                        class="search-input"
                      >
                        <el-option key="0" label="" value="" disabled>
                          <span style="float: left; color: #8492a6"
                            >人员姓名</span
                          >
                          <span style="margin: 0 80px 0 50px; color: #8492a6"
                            >联系方式</span
                          >
                          <span
                            style="
                              margin: 0 100px 0 0px;
                              color: #8492a6;
                              font-size: 13px;
                            "
                            >职位</span
                          >
                          <span style="color: #8492a6; font-size: 13px"
                            >部门</span
                          >
                        </el-option>
                        <el-option
                          v-for="item in userList"
                          :key="item.userId"
                          :label="item.nickName"
                          :value="item.userId"
                        >
                          <span
                            style="
                              display: inline-block;
                              width: 80px;
                              float: left;
                            "
                            >{{ item.nickName }}</span
                          >
                          <span
                            style="
                              display: inline-block;
                              width: 125px;
                              margin: 0 15px 0 23px;
                              color: #8492a6;
                              white-space: nowrap;
                              overflow: hidden;
                              text-overflow: ellipsis;
                            "
                            >{{
                              item.phonenumber ? item.phonenumber : "--"
                            }}</span
                          >
                          <span
                            style="
                              display: inline-block;
                              width: 125px;
                              font-size: 13px;
                              margin: 0 0px 0 0px;
                              transform: translateY(-11px);
                              color: #8492a6;
                            "
                          >
                            {{ item.postName ? item.postName : "--" }}
                          </span>
                          <span
                            style="
                              display: inline-block;
                              margin: 0 0px 0 0px;
                              font-size: 13px;
                              transform: translateY(-11px);
                              color: #8492a6;
                            "
                          >
                            {{ item.fullDeptName ? item.fullDeptName : "--" }}
                          </span>
                        </el-option>
                      </el-select>
                      <div class="submitBtn" @click="handlePoint(1)">
                        确认更换
                      </div>
                    </div>
                  </div>
            </el-descriptions-item>
            <el-descriptions-item
              label="任务备注"
              label-class-name="desLabel"
              label-align="center"
              align="center"
              >{{ auditList.remark || "--" }}</el-descriptions-item
            >
          </el-descriptions>
        </el-tab-pane>
        <el-tab-pane label="任务执行">
          <el-descriptions
            border
            style="margin: 20px 0"
            column="2"
            label-align="center"
            align="center"
          >
            <el-descriptions-item
              label="实际开始时间"
              label-class-name="desLabel"
              label-align="center"
              align="center"
              >{{ auditList.actualStartTime || "--" }}</el-descriptions-item
            >
            <el-descriptions-item
              label="实际结束时间"
              label-class-name="desLabel"
              label-align="center"
              align="center"
              >{{ auditList.finishTime || "--" }}</el-descriptions-item
            >
            <el-descriptions-item
              label="完成情况"
              label-class-name="desLabel"
              label-align="center"
              align="center"
            >
            {{ auditList.performance || "--" }}
            </el-descriptions-item>
            <el-descriptions-item
              label="相关文档"
              label-class-name="desLabel"
              label-align="center"
              align="center"
              >
              <span v-if="auditList.fileList.length > 0">{{ auditList.fileList[0].name }}</span>
              <span v-else>--</span>
            </el-descriptions-item>
          </el-descriptions>
        </el-tab-pane>
        <el-tab-pane label="操作日志">
          <div id="print-iframe">
            <!-- 步骤栏 -->
            <div class="steps-print-box">
              <el-steps
                direction="vertical"
                :class="flowInfoList.length > 7 ? 'BigSteps' : 'SmallSteps'"
                :active="flowingStep"
                finish-status="success"
              >
                <el-step v-for="(item, index) in flowInfoList" :key="index">
                  <template #title>
                    <div class="steps-top">
                      <div style="width: 200px">
                        {{ item.nodeName }}
                      </div>
                      <span class="steps-time">{{ item.createTime }}</span>
                    </div>
                  </template>
                  <template #description>
                    <div class="ription">
                      {{ item.createUserName }} {{ item.operate }}
                    </div>
                    <div class="steps-box-info" v-if="item.remark">
                      问题描述： {{ item.remark }}
                    </div>
                    <div class="line"></div>
                  </template>
                </el-step>
              </el-steps>
            </div>
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>

  </el-dialog>
</template>

<script setup>
import {
  getProvinceApi,
  // getCustomerListApi,
  getnewUserListApi,
} from "@/api/information/customer";
import { getallMaterialListApi } from "@/api/information/material";
import { getDictsApi } from "@/api/dict";
import useUserStore from "@/store/modules/user";
import { getInfoApi, operateLogApi,updateUserListApi } from "@/api/operation/work";
import { onMounted } from "vue";
import {
  getUserListApi,
} from "@/api/information/customer";
import { ElMessage, ElMessageBox } from "element-plus";
const route = useRoute();
const emit = defineEmits([
  // 项目新增组件显隐
  "projectAddShow",
  // 更新项目新增组件显隐
  "update:projectAddShow",
  // 刷新父组件表格数据
  "refreshList",
  // 更新跟进组件显隐
  "updateFollowAddShow",
]);
const userStore = useUserStore();
// 折叠栏默认展开
const activeNames = ref(["1", "2", "3", "4", "5"]);
const activeName = ref("info");
const activeFlag = ref(1);
// 客户表单引用
const projectFormRef = ref();
const workOrderRemark = ref("");
// 选择审核
const auditDialogShow = ref(false);
const loadingCheck = ref(false);
// 联系人表单引用
const contactFormRef = ref();
// 销售表单引用
const saleFormRef = ref();
// 联系人操作类型
const operateType = ref("");
// 详情加载效果
const detailInfoShow = ref(false);
const checkDialogShow = ref(false);
const checkTypeFlag = ref(null);
const detailFlag = ref(false);
// 新增编辑弹窗显隐
const operateDialogShow = ref(false);
// 联系人当前索引(编辑联系人使用)
const tableIndex = ref(null);
// 销售清单当前索引(编辑销售清单使用)
const tableIndexSec = ref(null);
// 输入框引用
const refInput = ref();
// 联系人输入框引用
const contactRefInput = ref();
// 下拉框引用
const refSelect = ref();
// 销售项目类目列表
const saleCategoryList = ref([]);
// 是否签合同列表
const contractList = ref([]);
// 是否中标列表
const successfulList = ref([]);
// 项目种类列表
const kindList = ref([]);
// 所属行业
const industryList = ref([]);
// 项目状态列表
const statusList = ref([]);
// 项目类型列表
const typeList = ref([]);
// 客户列表
const customerList = ref([]);
// 设备列表
const deviceList = ref([]);
//详细地址地图选择弹窗显隐
let isshowmap = ref(false);
let auditList = ref({
  startTime:'',
  endTime:'',
  userList:[],
  userList2:[],
  remark:'',
  actualStartTime:'',
  finishTime:'',
  fileList:[],
  performance:'',
  finishTime:'',
  missionCenterId:null
});
//日志数据
const flowInfoList = ref([]);
//当前进度
const flowingStep = ref(0);
const construction = reactive({
  pageNum: 1,
  pageSize: 50,
});
// 总数
const constructioTotal = ref(0);
//工单联系人
const constructionData = ref([]);
const projectOrder = ref({});
//省市区校验规则
const provinceValidate = (rule, value, callback) => {
  const { province, city, area } = projectForm.value;
  if (!province || !city || !area) {
    callback(new Error("请选择省市区"));
  } else {
    callback();
  }
};
// 项目表单模板
const projectFormTemplate = {
  address: "",
  area: null,
  arrivalStatus: null,
  checkStatus: null,
  checkTime: "",
  city: null,
  constructionAddress: "",
  customerId: null,
  endTime: "",
  includeContract: null,
  installationCompletionTime: "",
  money: null,
  planContractTime: "",
  practiceStatus: null,
  probability: "",
  projectCategory: null,
  projectName: "",
  projectPracticeInfoRespVos: [],
  projectSaleInfoRespVos: [],
  projectStatus: null,
  projectType: null,
  province: null,
  remarks: "",
  startTime: "",
  userId: null,
  type: 0,
  successfulBidder: null,
  dateValue: [],
  bidderPictures: [],
};
//自定义数字限制
const digitalRestrictions = (rule, value, callback) => {
  if (value < 0 || value > 9999) {
    callback(new Error("请输入0-9999之内的数字"));
  } else {
    callback();
  }
};
const mouseFlag = ref(false);
const delayedRecovery = ref(true);
const data = reactive({
  // 项目表单
  projectForm: JSON.parse(JSON.stringify(projectFormTemplate)),
  // 联系人表单
  contactForm: {
    name: "",
    phone: "",
    practiceId: null,
    projectId: null,
    remarks: "",
  },
  // 销售清单表单
  saleForm: {
    brand: "",
    materialId: null,
    materialUnit: null,
    materialUnitName: "",
    platformName: "",
    technologyParameter: "",
    projectId: null,
    projectSaleId: null,
    quantity: null,
    remarks: "",
    saleCategory: null,
    saleCategoryName: "",
    saleName: "",
  },
  // 项目表单校验规则
  queryRules: {
    projectName: [
      { required: true, message: "请输入项目名称", trigger: "blur" },
    ],
    userId: [{ required: true, message: "请选择业务人员", trigger: "change" }],
    projectStatus: [
      { required: true, message: "请选择项目状态", trigger: "change" },
    ],
    projectType: [
      { required: true, message: "请选择项目类型", trigger: "change" },
    ],
    dateValue: [
      { required: true, message: "请选择项目起止时间", trigger: "change" },
    ],
    projectCategory: [
      { required: true, message: "请选择项目种类", trigger: "change" },
    ],
    industry: [
      { required: true, message: "请选择所属行业", trigger: "change" },
    ],
    customerId: [
      { required: true, message: "请选择关联客户", trigger: "change" },
    ],
    city: [
      {
        required: true,
        validator: provinceValidate,
        message: "请选择省市区",
        trigger: "change",
      },
    ],
    address: [
      {
        required: true,
        message: "请输入详细地址",
        trigger: ["blur", "change"],
      },
      { min: 0, max: 49, message: "最多可输入50个字符", trigger: "blur" },
    ],
    probability: [
      { required: true, message: "请输入成交概率预估", trigger: "blur" },
      { validator: digitalRestrictions, trigger: "blur" },
    ],
    money: [
      { required: true, message: "请输入项目金额", trigger: "blur" },
      {
        pattern: /^\d{1,20}(\.\d+)?$/,
        message: "只能输入最多20位数字",
        trigger: "blur",
      },
    ],
    includeContract: [
      { required: true, message: "请选择是否签合同", trigger: "change" },
    ],
    successfulBidder: [
      { required: true, message: "请选择是否中标", trigger: "change" },
    ],
    planContractTime: [
      { required: true, message: "请选择计划成交合同时间", trigger: "change" },
    ],
    checkTime: [
      { required: true, message: "请选择验收日期", trigger: "change" },
    ],
    constructionAddress: [
      { required: true, message: "请输入施工地址", trigger: "blur" },
    ],
    installationCompletionTime: [
      { required: true, message: "请选择期望安装完成日期", trigger: "change" },
    ],
    endUseUnit: [
      { required: true, message: "请填写最终使用单位", trigger: "blur" },
    ],
    unitContact: [
      { required: true, message: "请填写使用单位联系人", trigger: "blur" },
    ],
    unitContactInformation: [
      {
        required: true,
        message: "请填写使用单位联系人联系方式",
        trigger: "blur",
      },
    ],
  },
  // 联系人表单校验规则
  queryContactRules: {
    name: [
      { required: true, message: "请输入姓名", trigger: "blur" },
      { min: 1, max: 15, message: "最多可输入15字", trigger: "blur" },
    ],
    phone: [
      { required: true, message: "请输入联系方式", trigger: "blur" },
      { min: 1, max: 11, message: "最多可输入11字", trigger: "blur" },
    ],
  },
  // 销售清单表单校验规则
  querySaleRules: {
    saleCategory: [
      { required: true, message: "请选择销售类目", trigger: "change" },
    ],
    materialId: [
      { required: true, message: "请选择设备名称", trigger: "change" },
    ],
    quantity: [{ required: true, message: "请输入设备数量", trigger: "blur" }],
    brand: [{ required: true, message: "请输入设备品牌", trigger: "blur" }],
  },
  // 省列表
  provinceList: [],
  // 市列表
  cityList: [],
  // 区列表
  areaList: [],
  // 用户列表
  userList: [],
  auditRemark: "",
  auditResult: "",
  applyId: "",
});
const {
  projectForm,
  contactForm,
  saleForm,
  queryRules,
  queryContactRules,
  querySaleRules,
  provinceList,
  cityList,
  areaList,
  userList,
  auditRemark,
  auditResult,
  applyId,
} = toRefs(data);

var typeNameList = ref([]);
const getTypeName = () => {
  getDictsApi("erp_operate_log_type").then((res) => {
    if (res.code === 200) {
      typeNameList.value = res.data;
    }
  });
};

// 处理鼠标移入
const handleMouseOver = (type) => {
  if(workOrderObj.value.manHour === 1 && delayedRecovery.value &&  workOrderObj.value.status != 3) {
    mouseFlag.value = true;
  }
};

// 处理鼠标手势提交
const handlePoint = async (type) => {
      delayedRecovery.value = false;
      mouseFlag.value = false;
      const info = {
        userList: auditList.value.userList2,
        // projectEndTime: "",
        missionCenterId: auditList.value.missionCenterId,
        // projectStartTime: "",
      };
      const res = await updateUserListApi(info);
      setTimeout(() => {
        delayedRecovery.value = true;
      }, 2000);
      if (res.code === 200) {
        ElMessage.success(res.msg);
        handleDetailInfo(workOrderObj.value.id)
      } else {
        ElMessage.error(res.msg);
      }

     
};
// 返回
const handleBack = () => {
  emit("update:projectAddShow", false);
};

/**
 * @description: 处理详情信息
 * @param {Number} id
 * @param {Number} type 区分项目立项、营销项目审核
 * @param {Number} detailFlagValue 区分详情、审核
 * @param {Number} flowUuid 审批使用id
 */
const workOrderObj = ref({});
const handleDetailInfo = async (id) => {
  checkDialogShow.value = true;
  // activeName.value = "info";
  await getInfoApi({ id: id }).then((res) => {
    console.log(res,'res')
    if (res) {
      nextTick(() => {
          workOrderObj.value = res.order;
          workOrderRemark.value = workOrderObj.value.remark;
          // console.log("workOrderObj.value", workOrdrObj);
          constructionData.value = res.concatList;
          projectOrder.value = res.project;
          if(res.task.missionCenterId) {
            auditList.value =  res.task;
          }
      });
      checkDialogShow.value = true;
    }
  });
   // 用户
   await getUserListApi().then((res) => {
    if (res.length > 0) {
      userList.value = res;
    }
  });
  await getOperateLogApi(id);
};

const getOperateLogApi = (id) => {
  let params = {
    type: 0,
    businessId: id,
    businessType: 1,
  };
  operateLogApi(params).then((res) => {
    if (res.code === 200) {
      flowInfoList.value = res.rows;
      flowInfoList.value.map((item) => {
        typeNameList.value.map((obj) => {
          if (item.type == obj.value) {
            item.typeName = obj.label;
          }
        });
      });
    }
  });
};

onMounted(() => {
  getTypeName();
});

defineExpose({
  handleDetailInfo,
});
</script>
<style lang="scss" scoped>
  .status-icon {
  width:116px;
  height:101px;
  /* background: url("@/assets/images/status-icon-0.png"); */
  position:absolute;
  top: 20px;
  right:100px;
  z-index: 9999;
}


.status-icon0 {
  background: url("@/assets/images/status-icon-0.png");
}
.status-icon1 {
  background: url("@/assets/images/status-icon-1.png");
}
.status-icon3 {
  background: url("@/assets/images/status-icon-4.png");
}
.status-icon2 {
  background: url("@/assets/images/status-icon-5.png");
}
.status-icon4 {
  background: url("@/assets/images/status-icon-3.png");
}
:deep(.el-collapse-item__header) {
  background-color: #f8faff;
}

.projectAdd {
  // padding: 20px 20px 0 20px;
  width: 100%;
  height: 100%;
  margin-bottom: 100px;
  :deep(.el-date-editor.el-input, .el-date-editor.el-input__wrapper) {
    width: 268px !important;
    height: 34px !important;
  }
  .project-info {
    padding: 20px 20px 5px 20px;
    background-color: #f0f0f0;
    margin: 10px 0;
  }
  .contact-info {
    padding-top: 20px;
  }
  :deep(.el-table) {
    th.el-table__cell {
      background: #f8f8f8 !important;
    }
  }
  .search-button {
    // position: relative !important;
    position: static;
  }
  :deep(.el-step__head.is-success) {
    color: #3399ff;
    border-color: #3399ff;
    position: relative;
  }
  :deep(.el-step__title) {
    // font-size: 16px;
    // line-height: 38px;
    // position: absolute;
    // top: -38px;
    // width: 140px;
    // overflow: hidden;
    // text-overflow: ellipsis;
    // white-space: nowrap;
  }
  :deep(.el-step__title.is-success) {
    font-size: 14px;
    color: #333333;
  }
  :deep(.desLabel) {
    background: transparent !important;
    width: 200px;
    // overflow: hidden;
    // white-space: nowrap; /* 确保文本在一行内显示 */
    // text-overflow: ellipsis; /* 使用省略号表示文字被截断 */
    font-weight: 500 !important;
  }
  .desContent {
    // width: 100%;
    width: 330px;
    overflow: hidden;
    white-space: nowrap; /* 确保文本在一行内显示 */
    text-overflow: ellipsis; /* 使用省略号表示文字被截断 */
  }
  .pagination {
    margin-bottom: 20px;
  }
}
</style>

<style>
.dialogBox .el-dialog__title {
  font-family: PingFang SC;
  font-weight: bold;
  font-size: 18px;
  color: #000000;
  line-height: 42px;
}

.dialogBox .el-dialog__body {
  padding: 0px 20px !important;
  height: 740px !important;
  overflow: auto;
}
.dialogBox .el-dialog__header {
  padding-bottom: 0 !important;
}
.custom-dropdown .dropdown-slot {
  height: 28px;
  line-height: 28px;
}

.custom-dropdown .scrollable-options {
  max-height: 200px; /* 根据需要设置合适的高度 */
  overflow-y: auto;
}

.dialogBox .dialog-top {
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: #333333;
  line-height: 42px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 18px;
}

.order-detail-header {
  //border: 1px red solid;
  height: 65px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  .order-container {
    //border: 1px red solid;
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: space-between;
    color: black;
    .order-title {
      font-weight: 600;
      font-size: 22px;
    }
    .container-footer {
      display: flex;
      justify-content: space-between;
    }
  }
}

.dialogBox .dialog-footer {
  position: absolute;
  padding: 10px 20px 0px 0px;
  bottom: 0px;
  right: 0px;
  z-index: 2000;
  width: 100%;
  height: 80px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.steps-time {
  font-size: 14px;
  color: #666666;
  margin-left: 300px;
}
.steps-box-info {
  margin: 30px 0;
  padding: 10px;
  width: 630px;
  min-height: 56px;
  border: 1px solid #e6e6e6;
  .ription {
    margin-bottom: 10px;
  }
  .line {
    width: 100%;
    border: 1px solid #e6e6e6;
    margin-bottom: 10px;
  }
}
.ription {
  margin: 10px 0;
}
.steps-print-box {
  height: 100%;
}
.steps-box-info {
  margin: 20px 0;
  padding: 10px;
  width: 630px;
  min-height: 56px;
  border: 1px solid #e6e6e6;
  .ription {
    margin-bottom: 10px;
  }
  .line {
    width: 100%;
    border: 1px solid #e6e6e6;
    margin-bottom: 10px;
  }
}
.steps-top {
  display: flex;
}
.submitBtn {
    padding-top: 6px;
    padding-left: 5px;
    color: #4359f9;
    cursor: pointer;
  }

</style>
